package org.example.myleet.p391;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(solution.isRectangleCover(Parser.parse("[[1,1,3,3],[3,1,4,2],[3,2,4,4],[1,3,2,4],[2,3,3,4]]")));
        Assert.isTrue(!solution.isRectangleCover(Parser.parse("[[1,1,2,3],[1,3,2,4],[3,1,4,2],[3,2,4,4]]")));
        Assert.isTrue(!solution.isRectangleCover(Parser.parse("[[1,1,3,3],[3,1,4,2],[1,3,2,4],[3,2,4,4]]")));
        Assert.isTrue(!solution.isRectangleCover(Parser.parse("[[1,1,3,3],[3,1,4,2],[1,3,2,4],[2,2,4,4]]")));
        Assert.isTrue(!solution.isRectangleCover(Parser.parse("[[0,0,1,1],[0,1,3,2],[1,0,2,2]]")));
    }
}
